package net.linlan.utils.entity;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * BaseEntity:基础树实体类
 * @author Linlan
 * CreateTime 2024-09-22 17:17:54
 * @version 1.0
 * @since 1.0
 *
 */
@Data
public class TreeEntity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 父菜单ID
     */
    private Long parentId;

    /**
     * 父菜单名称
     */
    private String parentName;

    /**
     * 排序
     */
    private Integer priority;

    /**
     * 祖级列表
     */
    private String searchCode;

    /**
     * 子树列表
     */
    private List<?> children = new ArrayList<>();

}
